Hệ thống bổ nhiệm bác sĩ trong PHP bằng mã nguồn

1 <?php if(!isset($_SESSION)){
2     session_start();
3     }
4 ?>
5
6 <?php include(
'header.php'); ?>
7
8
9
10
11
12
13     <!--
this is for donor registraton -->
14     <div
class="dashboard" style="background-color:#fff;">
15         <h3
class="text-center" style="background-color:#272327;color: #fff;padding: 5px;">All registered Doctor List</h3>
16         
17         
18     </div>
19         
20             <div
class="all_user" style="margin-top:0px; margin-left: 40px;">
21                 <?php
22                     include(
'../config.php');
23
24                     $sql =
" SELECT * FROM doctor";
25                     $result = mysqli_query($conn,$sql);
26                     $count = mysqli_num_rows($result);
27
28                     
if($count>=1){
29                         echo
"<table border='1' align='center' cellpadding='32'>
30                             <tr>
31                                 
32                                 <th>Name</th>
33                                 
34                                 <th>Address</th>
35                                 <th>Mobile</th>
36                                 <th>Email</th>
37                                 <th>Expert
in</th>
38
39                                 <th>Fee</th>
40                                 <th>Action</th>
41                                 
42                             </tr>"
;
43                         
while($row=mysqli_fetch_array($result)){
44                                 echo
"<tr>";
45                                 
// echo "<td>".$row['doctor_id']."</td>";
46                                 echo
"<td>".$row['name']."</td>";
47                                 
48                                 echo
"<td>".$row['address']."</td>";
49                                 echo
"<td>".$row['contact']."</td>";
50                                 echo
"<td>".$row['email']."</td>";
51                                 echo
"<td>".$row['expertise']."</td>";
52                                 
53                                 echo
"<td>".$row['fee']."</td>";
54                                 echo
"<td><button type='submit' name='submit' style='color:#000;'>Update</button><button type='submit' name='submit' style='color:#000;'>Delete</button></td>";
55                                 
56                                 echo
"</tr>";
57                         }
58                         echo
"</table>";
59                     }
60                     
else{
61                         print
"<p align='center'>Sorry, No match found for your search result..!!!</p>";
62                     }
63
64                     ?>
65             </div>
66         
67     
68     
69     
70
71     
72  <?php include(
'footer.php'); ?>
73
74
75     
76     </div><!-- containerFluid Ends -->
77
78
79
80
81     <script src=
"js/bootstrap.min.js"></script>
82
83
84  
85             
86
87
88
89     
90 </body>
91 </html>


Gõ tìm kiếm nhanh...